package com.chaopei.day03;

/**
 * @Author Corday 天涯
 * @Date 2022/3/7 10:51
 */
public class MyMaina {
    public static void main(String[] args) {
//        终态类创建对象
        BigPie bigPie = new BigPie("葱油饼",3);
        System.out.println(bigPie.getName()+bigPie.getPrice());
        System.out.println(bigPie.getInfo("大饼"));
        System.out.println(bigPie.getInfo(5));
        System.out.println(bigPie.getInfo("家常饼",2));
    }
}
